<?php
namespace app\admin\Controller;
use think\Request;

class Feedback extends Common
{

	/*
	*	构造函数
	*/
	function __construct(){
		parent::__construct();
		$this->suggestion =db("suggestion");
	}
   	

   	//用户反馈列表
    public function feedbacklist(){
    	$list = $this->suggestion->alias('f')
    	        ->join('member m','m.id=f.user_id')
    	        ->order('m.id desc')
              ->field("m.id, m.nickname, f.content,f.creatime,f.mobile")
    	        ->paginate(10);

		  $this->assign('data',$list);
      return $this->fetch();
    }
   
}